home *** CD-ROM | disk | FTP | other *** search
/ Programming Microsoft Visual Basic .NET / Programming Microsoft Visual Basic .NET (Microsoft Press)(X08-78517)(2002).bin / setup / vbnet / 25 user and custom controls / usercontrolsdemo / testpage.aspx < prev    next >
Encoding:
Text File  |  2002-03-19  |  1.7 KB  |  33 lines

  1. <%@ Register TagPrefix="ProgVB" TagName="PagingBar" src="PagingBar.ascx" %>
  2. <%@ Page Language="vb" AutoEventWireup="false" Codebehind="TestPage.aspx.vb" Inherits="UserControlsDemo.TestPage" trace="False" %>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  4. <HTML>
  5.     <HEAD>
  6.         <title>TestPage</title>
  7.         <meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
  8.         <meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
  9.         <meta content="JavaScript" name="vs_defaultClientScript">
  10.         <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  11.     </HEAD>
  12.     <body>
  13.         <form id="Form1" method="post" runat="server">
  14.             <H1>PagingBar User Control Demo</H1>
  15.             <P>This page lets you test the PagingBar user control. Initially the control lets 
  16.                 you simulate navigation through 50 pages (the actual page number is showed in 
  17.                 the cyan strip), but you can change this by entering a new value and clicking 
  18.                 on the Update button. By selecting the checkbox control on the bottom you can 
  19.                 dynamically create another instance of the PagingBar user control.</P>
  20.             <P> </P>
  21.             <P><asp:label id="lblPageData" runat="server" Width="462px" BackColor="#C0FFFF"></asp:label></P>
  22.             <P><PROGVB:PAGINGBAR id="PagingBar1" runat="server"></PROGVB:PAGINGBAR></P>
  23.             <P>Number of pages:
  24.                 <asp:textbox id="txtPages" runat="server" Width="60px"></asp:textbox><asp:button id="btnUpdate" runat="server" Text="Update"></asp:button></P>
  25.             <HR width="100%" SIZE="1">
  26.             <P><asp:checkbox id="chkShowControl" runat="server" Text="Show an additional User Control" AutoPostBack="True"></asp:checkbox></P>
  27.             <P>
  28.                 <asp:PlaceHolder id="PlaceHolder1" runat="server"></asp:PlaceHolder></P>
  29.         </form>
  30.         </FORM>
  31.     </body>
  32. </HTML>
  33.